//
//  NetworkBaseVC.m
//  ServiceCode
//
//  Created by 曹连华 on 2020/3/27.
//

#import "NetworkBaseVC.h"
#import "NetworkManager.h"
#import "NetworkOperationManager.h"

@interface NetworkBaseVC ()

@end

@implementation NetworkBaseVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

#pragma mark -
- (NetworkOperationManager *)operationManager {
    if (!_operationManager) {
        _operationManager = [[NetworkManager sharedInstance] generateOperationMangerWithOwner:self];
    }
    
    return _operationManager;
}

- (void)cancelAllOperations {
    [self.operationManager cancelAllOperations];
}

@end
